package com.jevons.muffin.activity;

import android.content.Context;
import android.content.Intent;

import androidx.lifecycle.LifecycleOwner;

import com.trello.rxlifecycle3.LifecycleTransformer;

/**
 * MVP模式-View基类
 * @author linaisheng
 * Created at 2018/12/19.
 */

public interface BaseView {

    LifecycleTransformer bindToLifecycle();

    LifecycleOwner getLifecycleOwner();

    void showLoading();

    void showLoading(boolean isCanBack);

    void showLoading(String loadingMsg);

    void showLoading(int loadingMsgId);

    void showLoading(String loadingMsg, boolean isCanBack);

    void hideLoading();

    void showToast(String msg);

    void startActivity(Class clz);

    void startActivity(Intent intent);

    Context getContext();

}
